﻿using EONFULLSIN.Languages;
using EONFULLSIN.Utils;
using System.Windows.Forms;

namespace EONFULLSIN.Views.SubView
{
    public partial class Wellcome : UserControl
    {
        public Wellcome()
        {
            InitializeComponent();
            LanguageChangedEvent.LanguageChanged += LanguageChangedEvent_LanguageChanged;
            LanguageChangedEvent_LanguageChanged(LanguageHelper.CurrentLanguage);
        }

        private void LanguageChangedEvent_LanguageChanged(string obj)
        {
            label1.Text = LanguageHelper.GetTranslation(obj, "Wellcome");
        }
    }
}